package com.zdxf.domain;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

@Data
public class UserDO {
    private int id;
    private String username;
    private Long userId;
    @JSONField(serialize = false)
    private String password;
    private String nickname;
    private int role_id;
    private String avatar;
    private String phone;
    private int sex;
    private Long roleId;
    private String idcard;
    private String roleName;
    @JSONField(serialize = false)
    private int lock_status;
    @JSONField(serialize = false)
    private Timestamp lock_time;
    private String address;
    private String create_time;
    private String deleteStatus;
    private String update_time;
    @JSONField(serialize = false)
    private int error_num;
    private List menuList;

    public void setToken(String token) {
        this.token = token;
    }

    private String token;

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    private String refreshToken;
}
